package com.zrwl.poscloud.xo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zrwl.poscloud.base.entity.Company;
import com.zrwl.poscloud.base.entity.CompanyDictData;
import com.zrwl.poscloud.base.superI.SuperService;
import com.zrwl.poscloud.xo.vo.CompanyDictDataVO;
import com.zrwl.poscloud.xo.vo.SysDictDataVO;

import java.util.List;
import java.util.Map;

/**
 * 商户字典数据 服务类
 *
 * @author 刘思童 AutoGenerate
 * @date 2021-04-26
 */
public interface CompanyDictDataService extends SuperService<CompanyDictData> {

    public IPage<CompanyDictData> getPageList(CompanyDictDataVO companyDictDataVO);
    public List<CompanyDictData> getAllList(CompanyDictDataVO companyDictDataVO);
    public String add(CompanyDictDataVO companyDictDataVO);
    public String edit(CompanyDictDataVO companyDictDataVO);
    public String delete(CompanyDictDataVO companyDictDataVO);
    public List<SysDictDataVO> getCompanyDictList() throws Exception;
    public String deleteBatchCompanyDictData(List<CompanyDictDataVO> companyDictDataVOList, Company company);
//    public String copyModelCompanyDictData(CompanyDictDataVO companyDictDataVO);
    public Map<String, Map> getCompanyAllDictData(CompanyDictDataVO companyDictDataVO) throws Exception;

    /**
     * 按公司字典类型列表获取列表
     * @param dictTypeList 字典类型
     * @param modelDictTypeUid 模板id
     * @param companyUid 商户id
     * @return
     */
    public Map<String, Map<String, Object>> getListByCompanyDictTypeList(List<String> dictTypeList,String modelDictTypeUid,String companyUid);
    /**
     * 按公司字典类型列表获取列表
     * @param dictType 字典类型
     * @param companyUid 商户id
     * @return
     */
    public Map<String,Object> getListByCompanyDictType(String dictType,String companyUid);
    List<CompanyDictData> importList(CompanyDictDataVO companyDictDataVO);//数据库导入
}
